<style tyle="text/css">
  .modal-lg {
    width: 70%;
  }
</style>
<div class="modal-header">
  <h4 class="modal-title">渠道信息</h4>
</div>
<div class="modal-body">

  <form name="form" class="form-horizontal form-validation ng-pristine ng-valid ng-valid-required">
    <div class="form-group" ng-if="channel.flag">
      <label class="col-lg-3 control-label">渠道编号:</label>
      <div class="col-lg-6">
        <input type="text" class="form-control" placeholder="必填" ng-model="channel.channel_code">
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">渠道名称:</label>
      <div class="col-lg-6">
        <input type="text" class="form-control" placeholder="必填" ng-model="channel.channel_list_name">
      </div>
    </div>
  </form>

  <table class="table table-striped">
    <thead>
      <tr>
        <th style="width: 3%;text-align: center;">
          <label class="i-checks m-b-none">
            <input type="checkbox" ng-model="all" ng-click="selAll()"><i></i>
          </label>
        </th>
        <th style="width: 8%; text-align:center;">销售品分类</th>
        <th style="width: 14%; text-align:center;">销售品名称</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="info in sale_type_list">
        <td class="text-center">
          <label class="i-checks m-b-none"><input type="checkbox" ng-model="info.state"><i></i></label>
        </td>
        <td class="text-center">{{info.value}}</td>
        <td class="text-center">{{info.label}}</td>
      </tr>
    </tbody>
  </table>

</div>

<div class="modal-footer">
    <button class="btn btn-success" type="button" ng-click="save()">确定</button>
    <button class="btn btn-danger" type="button" ng-click="cancel()">取消</button>
</div>
